<?php 
include 'config.php';
require 'protect.php';

$smarty->assign('mid','index.tpl');
$smarty->display('layout.tpl');
?>